'use strict';

const Controller = require('egg').Controller;

class BaseController extends Controller {
    async success(msg, redirectUrl) {
        await this.ctx.render('admin/public/success.html', {
            msg,
            redirectUrl
        })
    }
    async error(msg, redirectUrl) {
        await this.ctx.render('admin/public/error.html', {
            msg,
            redirectUrl
        })
    }
}

module.exports = BaseController;